<include file="public:header"/>

<div class="toptit">添加顾问评语模板</div>
<form id="form1" action="{:U('add')}" method="post">
    <div class="form_main width150">
        <div class="fl">模板标题:</div>
        <div class="fr">
            <input name="title" type="text" class="input_text_default middle" maxlength="30" value=""/>
        </div>
        <div class="fl">模板内容:</div>
        <div class="fr">
            <input name="content" type="text" class="input_text_default middle" maxlength="" value=""/>
        </div>
        <div class="fl">模板状态:</div>
        <div class="fr">
            <div data-code="1,0" class="imgchecked_small <in name='Think.config.qscms_resume_search_login' value='1,0'>select</in>"><input name="status" type="hidden" value="0" /></div>
            <div class="note">(关闭将不在接口显示)</div>
            <div class="clear"></div>
        </div>
        <div class="fl"></div>
        <div class="fr">
            <input name="addtime" type="hidden" value="{:time()}" />
            <input type="button" class="admin_submit" value="保存" id="J_submit"/>
            <input type="button" class="admin_submit" value="返回" onClick="history.go(-1)"/>
        </div>
        <div class="clear"></div>
    </div>
</form>

</div>
<include file="public:footer"/>
</body>
<script type="text/javascript">
    $(document).ready(function () {
        $('#J_submit').click(function(){
            var that = $(this);
            if(that.hasClass('disabled')){
                return false;
            }
            that.val('正在保存...').addClass('disabled');
            $.post("{:U('add')}",$('#form1').serialize(),function(result){
                if(result.status==1){
                    disapperTooltip("success", result.msg,function(){
                        location.href='{:U("index")}';
                    });
                }else{
                    disapperTooltip("remind", result.msg,function(){
                        that.val('保存').removeClass('disabled');
                    });
                    return false;
                }
            },'json');
        });
    });
</script>
</html>